package commons.utils.facades;

import org.eclipse.rwt.graphics.Graphics;
import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.graphics.Point;

import commons.utils.facades.GCFacade;

public class GCFacadeRAP extends GCFacade {

    @Override
    public int getAdvanceWidth(GC gc, char ch) {
        Point extent = Graphics.stringExtent(gc.getFont(), String.valueOf(ch));
        return extent.x;
    }
}
